//获取元素
				var Btn = $("#JS_dialog"),
					Back = $('#black'),
					DialogBox = $('#dialogBox'),
					DialogClose = $("#dialogBox span.dialog_close");
				var _height = $(document).height();
				$(".black").css("height",_height);				
				
				Btn.on('click',function(){
					//显示遮罩层					
					//显示弹出窗口					
					ShowHide(true,Back,DialogBox);
				});
				DialogClose.on('click',function(){
					//隐藏遮罩层					
					//隐藏弹出窗口					
					ShowHide(false,Back,DialogBox);
				});
				Back.on('click',function(){
					//隐藏遮罩层					
					//隐藏弹出窗口					
					ShowHide(false,Back,DialogBox);
				});
				
				function ShowHide(Boolean,item1,item2){
					for(var i = 1,len = arguments.length;i < len;i ++){
						if(Boolean){
							arguments[i].css("display","block");
						}else{
							arguments[i].css("display","none");
						}
					}
				}